package com.dt76.smallloanbackenduser.remote.xiaohao;

import com.dt76.smallloanbackenduser.hystrix.xiaohao.BankAccountHystrix;
import com.dt76.smallloanbackenduser.pojo.xiaohao.YBankAccount;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="smallloan-backend-service",fallback = BankAccountHystrix.class)
public interface BankAccountRemote {
    @RequestMapping("/xiaohao/YBankAccount/qryAllAccount")
    List<YBankAccount> qryAllAccount();

    @RequestMapping("/xiaohao/YBankAccount/qryById")
    YBankAccount qryById(@RequestParam("id") int id);
}
